<html>
<head>
<link rel="stylesheet" type="text/css" href=<?php echo base_url()."zy.css"; ?> />
<title>处方汇总</title>
</head>
<body>
<center>
<?php
	$this->load->library('myphplib');
	myphplib::myheadlinks();
?>
<br />
<br />
<br />
<h1>处方汇总</h1>

<?php
	echo '<table cols="100" border="1" width="800"';
	
	if (!$table_bgcolor || !strcmp($table_bgcolor, "none"))
	{
		echo ">\n";
	}
	else
	{
		echo "style=background-color:".$table_bgcolor.">\n";
	}
?>
<?php foreach($queryresult->result() as $row):?>
  <tr>
  	<td style="background-color:gray"><?php echo str_replace(chr(32),'&nbsp;',addslashes(htmlspecialchars($row->name))); ?></td>
  	<td width="40"><?php echo "<a href=".base_url()."index.php?c=zy_prescribe&m=modify&name=".str_replace(chr(32),'&nbsp;',addslashes(htmlspecialchars($row->name)))." />"; ?>修改</td>
    <td width="40"><?php echo "<a href=".base_url()."index.php?c=zy_prescribe&m=delete&name=".str_replace(chr(32),'&nbsp;',addslashes(htmlspecialchars($row->name)))." />"; ?>删除</td>
  </tr>
	<tr><td colspan="6"><?php echo nl2br(htmlentities($row->value)); ?></td></tr>
	<tr><td colspan="6" height="30"><?php echo nl2br(htmlentities($row->usemethod)); ?></td></tr>
<?php endforeach;?>
</table>
<br />
<br />
<?php echo $this->pagination->create_links(); ?>
</center>
</body>
</html>